package com.HuiShou.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.HuiShou.common.annotation.Excel;
import com.HuiShou.common.core.domain.BaseEntity;

/**
 * 回收订单对象 recycle_order
 * 
 * @author lyz
 * @date 2025-02-26
 */
@Data
public class RecycleOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private String orderId;

    /** 订单唯一编号 */
    @Excel(name = "订单唯一编号")
    private String orderNo;

    /** 客户 */
    @Excel(name = "客户")
    private Long clientId;

    /** 收运人员 */
    @Excel(name = "收运人员")
    private Long collectorId;

    /** 重量 */
    @Excel(name = "重量")
    private BigDecimal weight;

    /** 单价（元/Kg） */
    @Excel(name = "单价", readConverterExp = "元=/Kg")
    private BigDecimal unitPrice;

    /** 价值 */
    @Excel(name = "价值")
    private BigDecimal totalValue;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 图片 */
    @Excel(name = "图片")
    private String images;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 订单地址 */
    @Excel(name = "订单地址")
    private String address;

    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setClientId(Long clientId) 
    {
        this.clientId = clientId;
    }

    public Long getClientId() 
    {
        return clientId;
    }
    public void setCollectorId(Long collectorId) 
    {
        this.collectorId = collectorId;
    }

    public Long getCollectorId() 
    {
        return collectorId;
    }
    public void setWeight(BigDecimal weight) 
    {
        this.weight = weight;
    }

    public BigDecimal getWeight() 
    {
        return weight;
    }
    public void setUnitPrice(BigDecimal unitPrice) 
    {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getUnitPrice() 
    {
        return unitPrice;
    }
    public void setTotalValue(BigDecimal totalValue) 
    {
        this.totalValue = totalValue;
    }

    public BigDecimal getTotalValue() 
    {
        return totalValue;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setImages(String images) 
    {
        this.images = images;
    }

    public String getImages() 
    {
        return images;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("orderNo", getOrderNo())
            .append("clientId", getClientId())
            .append("collectorId", getCollectorId())
            .append("weight", getWeight())
            .append("unitPrice", getUnitPrice())
            .append("totalValue", getTotalValue())
            .append("status", getStatus())
            .append("images", getImages())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("address", getAddress())
            .toString();
    }
}
